﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kardex_DataAccess;
using Kardex_Entity;

namespace Kardex_BussinesLogic
{
  public  class CentroDistribuidorFactory
    {
         CentroDistribuidorDA  manager;
        public CentroDistribuidorFactory()
        {
            manager = new CentroDistribuidorDA();
        }
      /// <summary>
        /// GetListCD
      /// </summary>
        /// <returns>List of all ob centrodistribucion</returns>
        public List<centrodistribucion> GetListCD()
        {
            try
            {
                var ListCD = manager.GetListCD();
                return ListCD;
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }              
        }
    }
}
